package com.liang.service;


import com.liang.pojo.Reportforms;
import com.liang.pojo.dto.ReportformsDto;

import java.util.Map;
import java.util.List;
/**
 *@作者:lsk
 *Service接口
 *@Date:2023/10/26
*/
public interface ReportformsService {

	/**
	根据Reportforms_id查询
	*/
	public Object selectByReportforms_id(Long reportforms_id);

	/**
	根据Reportforms_id更新
	*/
	public Integer updateByReportforms_id(Reportforms demo);

	/**
	根据Reportforms_id删除
	*/
	public Integer deleteByReportforms_id(Long reportforms_id);



	/**
	 insert:(插入)
	*/
	public Object insert(Reportforms demo);


	/**
	 insertOrUpdate(插入或更新(根据主键或唯一索引更新，主键和唯一索引不会改变))
	*/
	public Integer insertOrUpdate(Reportforms demo);


	/**
	 insertBath:(批量插入)
	*/
	public Integer insertBatch(List<Reportforms> list);


	/**
	 insertOrUpdateBatch:(批量插入或更新)
	*/
	public Integer insertOrUpdateBatch(List<Reportforms> list);


	/**
	 selectList:(根据参数查询集合)
	*/
	public List<Reportforms> selectList(Map<String, Object> param);


	/**
	 selectCount:(根据集合查询数量)
	*/
	public Long selectCount(Map<String, Object> param);

    Boolean addReportForms(Reportforms reportforms);

	Map GetReportFormsHistory(ReportformsDto reportformsDto);

	Map superiorAplyReportForms(ReportformsDto reportformsDto);

	Boolean superiorApprovalReportForms(ReportformsDto reportformsDto);

	Map getReportForms(ReportformsDto reportformsDto);

	Map getAllReportForms(ReportformsDto reportformsDto);
}